package com.example.xyh.service;

import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderListService {
    List<com.example.xyh.dto.OrderListDto> findByItemId(Integer item_id);

    List<com.example.xyh.dto.OrderListDto> findByOrderId(Integer order_id);

    com.example.xyh.dto.OrderListDto findByOrderIdAndItemId(Integer order_id, Integer item_id);

    com.example.xyh.dto.OrderListDto save(Integer id, Integer item_id, Integer order_id, Integer item_quantity);

    List<com.example.xyh.dto.OrderListDto> findByCustomerId(Integer customer_id);
}
